
'use strict';

const express=require('express');
const path=require('path');
const moment=require('moment');
const teaWorkRouter=express.Router();

const teaWorkCtrl=require(path.join(__dirname,"../controllers/teaWorkController.js"));

teaWorkRouter.get('/teaWork_list',teaWorkCtrl.teaWorkList);

teaWorkRouter.get('/teaWork_add',teaWorkCtrl.teaWorkAdd);

teaWorkRouter.post('/teaWork_add',teaWorkCtrl.teaWorkAddData);

teaWorkRouter.get('/teaWork_edite/:work_id',teaWorkCtrl.teaWorkEdite);

teaWorkRouter.post('/teaWork_edite/:work_id',teaWorkCtrl.teaWorkEditeData);

teaWorkRouter.get('/teaWork_delete/:work_id',teaWorkCtrl.teaWorkDelete);

module.exports=teaWorkRouter;